home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / uucp-doc.lha / uucp-doc-1.04 / uucp.info-3 (.txt) < prev    next >
GNU Info File  |  1993-02-14  |  51KB  |  909 lines

  1. This is Info file uucp.info, produced by Makeinfo-1.49 from the input
  2. file uucp.texi.
  3.    This file documents Taylor UUCP, version 1.04.
  4.    Copyright (C) 1992, 1993 Ian Lance Taylor
  5.    Permission is granted to make and distribute verbatim copies of this
  6. manual provided the copyright notice and this permission notice are
  7. preserved on all copies.
  8.    Permission is granted to copy and distribute modified versions of
  9. this manual under the conditions for verbatim copying, provided also
  10. that the section entitled "Copying" are included exactly as in the
  11. original, and provided that the entire resulting derived work is
  12. distributed under the terms of a permission notice identical to this
  13.    Permission is granted to copy and distribute translations of this
  14. manual into another language, under the above conditions for modified
  15. versions, except that the section entitled "Copying" may be included in
  16. a translation approved by the author instead of in the original English.
  17. File: uucp.info,  Node: Protocol Selection,  Next: File Transfer Control,  Prev: Accepting a Call,  Up: sys File
  18. Protocol Selection
  19. ------------------
  20. `protocol STRING'
  21.      Specifies which protocols to use for the other system, and in which
  22.      order to use them.  This would not normally be used.  For example,
  23.      `protocol tfg'.
  24.      The default depends on the characteristics of the port and the
  25.      dialer, as specified by the `seven-bit' and `reliable' commands. 
  26.      If neither the port nor the dialer use either of these commands,
  27.      the default is to assume an eight-bit reliable connection.  The
  28.      commands `seven-bit true' or `reliable false' might be used in
  29.      either the port or the dialer to change this.  Each protocol has
  30.      particular requirements that must be met before it will be
  31.      considered during negotiation with the remote side.
  32.      The `t' and `e' protocols are intended for use over TCP or some
  33.      other communication path with end to end reliability, as they do no
  34.      checking of the data at all.  They will only be considered on a
  35.      TCP port which is both reliable and eight bit.
  36.      The `i' protocol is a bidirectional protocol.  It requires an
  37.      eight-bit connection.  It will run over a half-duplex link, such as
  38.      Telebit modems in PEP mode, but for efficient use of such a
  39.      connection you must use the `half-duplex' command (*note port
  40.      File::.).
  41.      The `g' protocol is robust, but requires an eight-bit connection.
  42.      The `G' protocol is the System V Release 4 version of the `g'
  43.      protocol.
  44.      The `a' protocol is a Zmodem like protocol, contributed by Doug
  45.      Evans.  It requires an eight-bit connection, but unlike the `g' or
  46.      `i' protocol it will work if certain control characters may not be
  47.      transmitted.
  48.      The `j' protocol is a variant of the `i' protocol which can avoid
  49.      certain control characters.  The set of characters it avoids can
  50.      be set by a parameter.  While it technically does not require an
  51.      eight bit connection (it could be configured to avoid all
  52.      characters with the high bit set) it would be very inefficient to
  53.      use it over one.  It is useful over a eight-bit connection that
  54.      will not transmit certain control characters.
  55.      The `f' protocol is intended for use with X.25 connections; it
  56.      checksums each file as a whole, so any error causes the entire
  57.      file to be retransmitted.  It requires a reliable connection, but
  58.      only uses seven-bit transmissions.  It is a streaming protocol,
  59.      so, while it can be used on a serial port, the port must be
  60.      completely reliable and flow controlled; many aren't.
  61.      The protocols will be considered in the order shown above.  This
  62.      means that if neither the `seven-bit' nor the `reliable' command
  63.      are used, the `t' protocol will be used over a TCP connection and
  64.      the `i' protocol will be used over any other type of connection
  65.      (subject, of course, to what is supported by the remote system; it
  66.      may be assumed that all systems support the `g' protocol).
  67.      Note that currently specifying both `seven-bit true' and `reliable
  68.      false' will not match any protocol.  If this occurs through a
  69.      combination of port and dialer specifications, you will have to
  70.      use the `protocol' command for the system or no protocol will be
  71.      selected at all (the only reasonable choice would be `protocol f').
  72.      A protocol list may also be specified for a port (*note port
  73.      File::.), but if there is a list for the system the list for the
  74.      port is ignored.
  75. `protocol-parameter CHARACTER STRING ...'
  76.      CHARACTER is a single character specifying a protocol.  The
  77.      remaining strings are a command specific to that protocol which
  78.      will be executed if that protocol is used.  A typical command is
  79.      something like `window 7'.  The particular commands are protocol
  80.      specific.
  81.      The `i' protocol supports the following commands, all of which take
  82.      numeric arguments:
  83.     `window'
  84.           The window size to request the remote system to use.  This
  85.           must be between 1 and 31 inclusive.  The default is 16.
  86.     `packet-size'
  87.           The packet size to request the remote system to use.  This
  88.           must be between 1 and 4095 inclusive.  The default is 1024.
  89.     `remote-window'
  90.           If this is between 1 and 31 inclusive, the window size
  91.           requested by the remote system is ignored and this is used
  92.           instead.  The default is 0, which means that the remote
  93.           system's request is honored.
  94.     `remote-packet-size'
  95.           If this is between 1 and 4095 inclusive, the packet size
  96.           requested by the remote system is ignored and this is used
  97.           instead.  The default is 0, which means that the remote
  98.           system's request is honored.
  99.     `sync-timeout'
  100.           The length of time, in seconds, to wait for a SYNC packet
  101.           from the remote system.  SYNC packets are exchanged when the
  102.           protocol is started.  The default is 10.
  103.     `sync-retries'
  104.           The number of times to retry sending a SYNC packet before
  105.           giving up. The default is 6.
  106.     `timeout'
  107.           The length of time, in seconds, to wait for an incoming
  108.           packet before sending a negative acknowledgement.  The
  109.           default is 10.
  110.     `retries'
  111.           The number of times to retry sending a packet or a negative
  112.           acknowledgement before giving up and closing the connection. 
  113.           The default is 6.
  114.     `errors'
  115.           The maximum number of errors to permit before closing the
  116.           connection. The default is 100.
  117.     `error-decay'
  118.           The rate at which to ignore errors.  Each time this many
  119.           packets are received, the error count is decreased by one, so
  120.           that a long connection with an occasional error will not
  121.           exceed the limit set by `errors'. The default is 10.
  122.      The `g' and `G' protocols support the following commands, all of
  123.      which take numeric arguments, except `short-packets' which takes a
  124.      boolean argument:
  125.     `window'
  126.           The window size to request the remote system to use.  This
  127.           must be between 1 and 7 inclusive.  The default is 7.
  128.     `packet-size'
  129.           The packet size to request the remote system to use.  This
  130.           must be a power of 2 between 32 and 4096 inclusive.  The
  131.           default is 64, which is the only packet size supported by
  132.           many older UUCP packages.  Some UUCP packages will even dump
  133.           core if a larger packet size is requested.
  134.     `startup-retries'
  135.           The number of times to retry the initialization sequence. 
  136.           The default is 8.
  137.     `init-retries'
  138.           The number of times to retry one phase of the initialization
  139.           sequence (there are three phases).  The default is 4.
  140.     `init-timeout'
  141.           The timeout in seconds for one phase of the initialization
  142.           sequence.  The default is 10.
  143.     `retries'
  144.           The number of times to retry sending either a data packet or
  145.           a request for the next packet.  The default is 6.
  146.     `timeout'
  147.           The timeout in seconds when waiting for either a data packet
  148.           or an acknowledgement.  The default is 10.
  149.     `garbage'
  150.           The number of unrecognized bytes to permit before dropping the
  151.           connection.  This must be larger than the packet size.  The
  152.           default is 10000.
  153.     `errors'
  154.           The number of errors (malformed packets, out of order
  155.           packets, bad checksums, or packets rejected by the remote
  156.           system) to permit before dropping the connection.  The
  157.           default is 100.
  158.     `error-decay'
  159.           The rate at which to ignore errors.  Each time this many
  160.           packets are received, the error count is decreased by one, so
  161.           that a long connection with an occasional error will not
  162.           exceed the limit set by `errors'. The default is 10.
  163.     `remote-window'
  164.           If this is between 1 and 7 inclusive, the window size
  165.           requested by the remote system is ignored and this is used
  166.           instead.  This can be useful when dealing with some poor UUCP
  167.           packages.  The default is 0, which means that the remote
  168.           system's request is honored.
  169.     `remote-packet-size'
  170.           If this is between 32 and 4096 inclusive the packet size
  171.           requested by the remote system is ignored and this is used
  172.           instead.  There is probably no good reason to use this.  The
  173.           default is 0, which means that the remote system's request is
  174.           honored.
  175.     `short-packets'
  176.           If this is true, then the code will optimize by sending
  177.           shorter packets when there is less data to send.  This
  178.           confuses some UUCP packages, such as System V Release 4 (when
  179.           using the `G' protocol) and Waffle; when connecting to such a
  180.           package, this parameter must be set to false. The default is
  181.           true for the `g' protocol and false for the `G' protocol.
  182.      The `a' protocol is a Zmodem like protocol contributed by Doug
  183.      Evans.  It supports the following commands, all of which take
  184.      numeric arguments except for `escape-control', which takes a
  185.      boolean argument:
  186.     `timeout'
  187.           Number of seconds to wait for a packet to arrive.  The
  188.           default is 10.
  189.     `retries'
  190.           The number of times to retry sending a packet.  The default
  191.           is 10.
  192.     `startup-retries'
  193.           The number of times to retry sending the initialization
  194.           packet.  The default is 4.
  195.     `garbage'
  196.           The number of garbage characters to accept before closing the
  197.           connection.  The default is 2400.
  198.     `send-window'
  199.           The number of characters that may be sent before waiting for
  200.           an acknowledgement.  The default is 1024.
  201.     `escape-control'
  202.           Whether to escape control characters.  If this is true, the
  203.           protocol may be used over a connection which does not
  204.           transmit certain control characters, such as `XON' or `XOFF'.
  205.            The connection must still transmit eight bit characters
  206.           other than control characters.  The default is false.
  207.      The `j' protocol can be used over an eight bit connection that will
  208.      not transmit certain control characters.  It accepts the same
  209.      protocol parameters that the `i' protocol accepts, as well as one
  210.      more:
  211.     `avoid'
  212.           A list of characters to avoid.  This is a string which is
  213.           interpreted as an escape sequence (*note Chat Scripts::.). 
  214.           The protocol does not have a way to avoid printable ASCII
  215.           characters (byte values from 32 to 126, inclusive); only
  216.           ASCII control characters and eight-bit characters may be
  217.           avoided.  The default value is `\021\023'; these are the
  218.           characters `XON' and `XOFF' which many connections use for
  219.           flow control.  If the package is configured to use
  220.           `HAVE_BSD_TTY', then on some versions of Unix you may have to
  221.           avoid `\377' as well, due to the way some implementations of
  222.           the BSD terminal driver handle signals.
  223.      The `f' protocol is intended for use with error-correcting modems
  224.      only; it checksums each file as a whole, so any error causes the
  225.      entire file to be retransmitted.  It supports the following
  226.      commands, both of which take numeric arguments:
  227.     `timeout'
  228.           The timeout in seconds before giving up.  The default is 120.
  229.     `retries'
  230.           How many times to retry sending a file.  The default is 2.
  231.      The `t' and `e' protocols are intended for use over TCP or some
  232.      other communication path with end to end reliability, as they do no
  233.      checking of the data at all.  They both support a single command,
  234.      which takes a numeric argument:
  235.     `timeout'
  236.           The timeout in seconds before giving up.  The default is 120.
  237.      The protocol parameters are reset to their default values after
  238.      each call.
  239. File: uucp.info,  Node: File Transfer Control,  Next: Miscellaneous (sys),  Prev: Protocol Selection,  Up: sys File
  240. File Transfer Control
  241. ---------------------
  242. `send-request BOOLEAN'
  243.      The BOOLEAN determines whether the remote system is permitted to
  244.      request files from the local system.  The default is yes.
  245. `receive-request BOOLEAN'
  246.      The BOOLEAN determines whether the remote system is permitted to
  247.      send files to the local system.  The default is yes.
  248. `request BOOLEAN'
  249.      A shorthand command, equivalent to specifying both `send-request
  250.      BOOLEAN' and `receive-request BOOLEAN'.
  251. `call-transfer BOOLEAN'
  252.      The BOOLEAN is checked when the local system places the call.  It
  253.      determines whether the local system may do file transfers queued
  254.      up for the remote system.  The default is yes.
  255. `called-transfer BOOLEAN'
  256.      The BOOLEAN is checked when the remote system calls in.  It
  257.      determines whether the local system may do file transfers queued
  258.      up for the remote system.  The default is yes.
  259. `transfer BOOLEAN'
  260.      Equivalent to specifying both `call-transfer BOOLEAN'
  261.      `called-transfer BOOLEAN'.
  262. `call-local-size NUMBER STRING'
  263.      The STRING is a time string (*note Time Strings::.).  The NUMBER
  264.      is the size in bytes of the largest file that should be
  265.      transferred at a time matching the time string if the local system
  266.      placed the call and the request was made by the local system.  This
  267.      command may appear multiple times in a single alternate.  If this
  268.      command does not appear, or if none of the time strings match,
  269.      there are no size restrictions.
  270.      With all the size control commands, the size of a file from the
  271.      remote system (as opposed to a file from the local system) will
  272.      only be checked if the other system is running this package; other
  273.      UUCP packages will not understand a maximum size request, nor will
  274.      they inform this package of the size of remote files.
  275. `call-remote-size NUMBER STRING'
  276.      Specify the size in bytes of the largest file that should be
  277.      transferred at a given time by remote request when the local system
  278.      placed the call.  This command may appear multiple times in a
  279.      single alternate.  If this command does not appear, there are no
  280.      size restrictions.
  281. `called-local-size NUMBER STRING'
  282.      Specify the size in bytes of the largest file that should be
  283.      transferred at a given time by local request when the remote
  284.      system placed the call. This command may appear multiple times in
  285.      a single alternate. If this command does not appear, there are no
  286.      size restrictions.
  287. `called-remote-size NUMBER STRING'
  288.      Specify the size in bytes of the largest file that should be
  289.      transferred at a given time by remote request when the remote
  290.      system placed the call.  This command may appear multiple times in
  291.      a single alternate. If this command does not appear, there are no
  292.      size restrictions.
  293. `local-send STRINGS'
  294.      Specifies that files in the directories named by the STRINGS may
  295.      be sent to the remote system when requested locally (using `uucp'
  296.      or `uux').  The directories in the list should be separated by
  297.      whitespace.  A `~' may be used for the public directory.  On a Unix
  298.      system, this is typically `/usr/spool/uucppublic'; the public
  299.      directory may be set with the `pubdir' command.  Here is an example
  300.      of `local-send':
  301.           local-send ~ /usr/spool/ftp/pub
  302.      Listing a directory allows all files within the directory and all
  303.      subdirectories to be sent.  Directories may be excluded by
  304.      preceding them with an exclamation point.  For example:
  305.           local-send /usr/ftp !/usr/ftp/private ~
  306.      means that all files in `/usr/ftp' or the public directory may be
  307.      sent, except those files in `/usr/ftp/private'.  The list of
  308.      directories is read from left to right, and the last directory to
  309.      apply takes effect; this means that directories should be listed
  310.      from top down.  The default is the root directory (i.e., any file
  311.      at all may be sent by local request).
  312. `remote-send STRINGS'
  313.      Specifies that files in the named directories may be sent to the
  314.      remote system when requested by the remote system.  The default is
  315.      `~'.
  316. `local-receive STRINGS'
  317.      Specifies that files may be received into the named directories
  318.      when requested by a local user.  The default is `~'.
  319. `remote-receive STRINGS'
  320.      Specifies that files may be received into the named directories
  321.      when requested by the remote system.  The default is `~'.  On
  322.      Unix, the remote system may only request that files be received
  323.      into directories that are writeable by the world, regardless of
  324.      how this is set.
  325. `forward-to STRINGS'
  326.      Specifies a list of systems to which files may be forwarded.  The
  327.      remote system may forward files through the local system on to any
  328.      of the systems in this list.  The string `ANY' may be used to
  329.      permit forwarding to any system.  The default is to not permit
  330.      forwarding to other systems.  Note that if the remote system is
  331.      permitted to execute the `uucp' command, it effectively has the
  332.      ability to forward to any system.
  333. `forward-from STRINGS'
  334.      Specifies a list of systems from which files may be forwarded.  The
  335.      remote system may request files via the local system from any of
  336.      the systems in this list.  The string `ANY' may be used to permit
  337.      forwarding to any system.  The default is to not permit forwarding
  338.      from other systems.  Note that if a remote system is permitted to
  339.      execute the `uucp' command, it effectively has the ability to
  340.      request files from any system.
  341. `forward STRINGS'
  342.      Equivalent to specifying both `forward-to STRINGS' and
  343.      `forward-from STRINGS'.  This would normally be used rather than
  344.      either of the more specific commands.
  345. File: uucp.info,  Node: Miscellaneous (sys),  Next: Default sys File Values,  Prev: File Transfer Control,  Up: sys File
  346. Miscellaneous sys File Commands
  347. -------------------------------
  348. `sequence BOOLEAN'
  349.      If BOOLEAN is true, then conversation sequencing is automatically
  350.      used for the remote system, so that if somebody manages to spoof
  351.      as the remote system, it will be detected the next time the remote
  352.      system actually calls.  This is false by default.
  353. `command-path STRING'
  354.      Specifies the path (a list of whitespace separated directories) to
  355.      be searched to locate commands to execute.  This is only used for
  356.      commands requested by `uux', not for chat programs.  The default
  357.      is from `policy.h'.
  358. `commands STRINGS'
  359.      The list of commands which the remote system is permitted to
  360.      execute locally.  For example: `commands rnews rmail'.  If the
  361.      value is `ALL' (case significant), all commands may be executed. 
  362.      The default is `rnews rmail'.
  363. `free-space NUMBER'
  364.      Specify the minimum amount of file system space (in bytes) to
  365.      leave free after receiving a file.  If the incoming file will not
  366.      fit, it will be rejected.  This initial rejection will only work
  367.      when talking to another instance of this package, since older UUCP
  368.      packages do not provide the file size of incoming files.  Also,
  369.      while a file is being received, `uucico' will periodically check
  370.      the amount of free space.  If it drops below the amount given by
  371.      the `free-space' command, the file transfer will be aborted.  The
  372.      default amount of space to leave free is from `policy.h'.  This
  373.      file space checking may not work on all systems.
  374. `pubdir STRING'
  375.      Specifies the public directory that is used when `~' is specifed in
  376.      a file transfer or a list of directories.  This essentially
  377.      overrides the public directory specified in the main configuration
  378.      file for this system only.  The default is the public directory
  379.      specified in the main configuration file (which defaults to a
  380.      value from `policy.h').
  381. `debug STRING ...'
  382.      Set additional debugging for calls to or from the system.  This
  383.      may be used to debug a connection with a specific system.  It is
  384.      particularly useful when debugging incoming calls, since debugging
  385.      information will be generated whenever the call comes in.  See the
  386.      `debug' command in the main configuration file (*note Debugging
  387.      Levels::.) for more details.  The debugging information specified
  388.      here is in addition to that specified in the main configuration
  389.      file or on the command line.
  390. `max-remote-debug STRING ...'
  391.      When the system calls in, it may request that the debugging level
  392.      be set to a certain value.  This command may be used to put a
  393.      limit on the debugging level which the system may request, to
  394.      avoid filling up the disk with debugging information.  Only the
  395.      debugging types named in the `max-remote-debug' command may be
  396.      turned on by the remote system. To prohibit any debugging, use
  397.      `max-remote-debug none'.  The default is
  398.      `abnormal,chat,handshake'; to turn off these default entries, you
  399.      must use `max-remote-debug none' followed by other
  400.      `max-remote-debug' commands specifying the settings you want.
  401. File: uucp.info,  Node: Default sys File Values,  Prev: Miscellaneous (sys),  Up: sys File
  402. Default sys File Values
  403. -----------------------
  404.    The following are used as default values for all systems; they can be
  405. considered as appearing before the start of the file.
  406.      time Never
  407.      chat "" \r\c ogin:-BREAK-ogin:-BREAK-ogin: \L word: \P
  408.      chat-timeout 10
  409.      callback n
  410.      sequence n
  411.      request y
  412.      transfer y
  413.      local-send /
  414.      remote-send ~
  415.      local-receive ~
  416.      remove-receive ~
  417.      command-path [ from `policy.h' ]
  418.      commands rnews rmail
  419.      max-remote-debug abnormal,chat,handshake
  420. File: uucp.info,  Node: port File,  Next: dial File,  Prev: sys File,  Up: Configuration Files
  421. The Port Configuration File
  422. ===========================
  423.    The port files may be used to name and describe ports.  Any commands
  424. in the file before the first `port' command specify defaults for all
  425. ports in the file.  All commands after a `port' command up to the next
  426. `port' command then describe that port.  There are different types of
  427. ports; each type supports its own set of commands.  Each command
  428. indicates which types of ports support it.  There may be many ports
  429. with the same name; if a system requests a port by name then each port
  430. with that name will be tried until an unlocked one is found.
  431. `port STRING'
  432.      Introduces and names a port.
  433. `type STRING'
  434.      Define the type of port.  The default is `modem'.  If this command
  435.      appears, it must immediately follow the `port' command.  The type
  436.      defines what commands are subsequently allowed.  Currently the
  437.      types are:
  438.     `modem'
  439.           For a modem hookup.
  440.     `stdin'
  441.           For a connection through standard input and standard output,
  442.           as when `uucico' is run as a login shell.
  443.     `direct'
  444.           For a direct connection to another system.
  445.     `tcp'
  446.           For a connection using TCP.
  447.     `tli'
  448.           For a connection using TLI.
  449. `protocol STRING'
  450.      Specify a list of protocols to use for this port.  This is just
  451.      like the corresponding command for a system (*note Protocol
  452.      Selection::.).  A protocol list for a system takes precedence over
  453.      a list for a port.
  454. `protocol-parameter CHARACTER STRINGS [ any type ]'
  455.      The same command as the `protocol-parameter' command used for
  456.      systems (*note Protocol Selection::.).  This one takes precedence.
  457. `seven-bit BOOLEAN [ any type ]'
  458.      This is only used during protocol negotiation; if the argument is
  459.      true, it forces the selection of a protocol which works across a
  460.      seven-bit link.  It does not prevent eight bit characters from
  461.      being transmitted. The default is false.
  462. `reliable BOOLEAN [ any type ]'
  463.      This is only used during protocol negotiation; if the argument is
  464.      false, it forces the selection of a protocol which works across an
  465.      unreliable communication link.  The default is true.  It would be
  466.      more common to specify this for a dialer rather than a port.
  467. `half-duplex BOOLEAN [ any type ]'
  468.      If the argument is true, it means that the port only supports
  469.      half-duplex connections.  This only affects bidirectional
  470.      protocols, and causes them to not do bidirectional transfers.
  471. `device STRING [ modem, direct and tli only ]'
  472.      Names the device associated with this port.  If the device is not
  473.      named, the port name is taken as the device.  Device names are
  474.      system dependent.  On Unix, a modem or direct connection might be
  475.      something like `/dev/ttyd0'; a TLI port might be `/dev/inet/tcp'.
  476. `baud NUMBER [ modem and direct only ]'
  477. `speed NUMBER [modem and direct only ]'
  478.      The speed this port runs at.  If a system specifies a speed but no
  479.      port name, then all ports which match the speed will be tried in
  480.      order.  If the speed is not specified here and is not specified by
  481.      the system, the natural speed of the port will be used by default.
  482. `baud-range NUMBER NUMBER [ modem only ]'
  483. `speed-range NUMBER NUMBER [ modem only ]'
  484.      Specify a range of speeds this port can run at.  The first number
  485.      is the minimum speed, the second number is the maximum speed. 
  486.      These numbers will be used when matching a system which specifies
  487.      a desired speed. The simple `speed' (or `baud') command is still
  488.      used to determine the speed to run at if the system does not
  489.      specify a speed. For example, the command `speed-range 300 19200'
  490.      means that the port will match any system which uses a speed from
  491.      300 to 19200 baud (and will use the speed specified by the
  492.      system); this could be combined with `speed 2400', which means
  493.      that when this port is used with a system that does not specify a
  494.      speed, the port will be used at 2400 baud.
  495. `carrier BOOLEAN [ modem only ]'
  496.      The argument indicates whether the port supports carrier.  If it
  497.      does not, carrier will never be required on this port, regardless
  498.      of what the modem chat script indicates.  The default is true.
  499. `dial-device STRING [ modem only ]'
  500.      Dialing instructions should be output to the named device, rather
  501.      than to the normal port device.  The default is to output to the
  502.      normal port device.
  503. `dialer STRING [ modem only ]'
  504.      Name a dialer to use.  The information is looked up in the dialer
  505.      file. There is no default.  Some sort of dialer information must
  506.      be specified to call out on a modem.
  507. `dialer STRING ... [ modem only ]'
  508.      Execute a dialer command.  If a dialer is named (by using the
  509.      first form of this command, described just above), these commands
  510.      are ignored. They may be used to specify dialer information
  511.      directly in simple situations without needing to go to a separate
  512.      file.  There is no default.  Some sort of dialer information must
  513.      be specified to call out on a modem.
  514. `dialer-sequence STRINGS [ modem or tli only ]'
  515.      Name a sequence of dialers and tokens (phone numbers) to use.  The
  516.      first argument names a dialer, and the second argument names a
  517.      token.  The third argument names another dialer, and so on.  If
  518.      there are an odd number of arguments, the phone number specified
  519.      with a `phone' command in the system file is used as the final
  520.      token.  The token is what is used for `\D' or `\T' in the dialer
  521.      chat script.  If the token in this string is `\D', the system
  522.      phone number will be used; if it is `\T', the system phone number
  523.      will be used after undergoing dialcodes translation.  A missing
  524.      final token is taken as `\D'.
  525.      This command currently does not work if `dial-device' is specified;
  526.      to handle this correctly will require a more systematic notion of
  527.      chat scripts.  Moreover, only the `complete' and `abort' chat
  528.      scripts from the first dialer specified are used, and only the
  529.      protocol parameters from the first dialer are used.
  530.      This command basically lets you specify a sequence of chat scripts
  531.      to use.  For example, the first dialer might get you to a local
  532.      network and the second dialer might describe how to select a
  533.      machine from the local network.  This lets you break your dialing
  534.      sequence into simple modules, and may make it easier to share
  535.      dialer entries between machines.
  536.      When this command is used with a TLI port, then if the first
  537.      dialer is `TLI' or `TLIS' the first token is used as the address to
  538.      connect to.  If the first dialer is something else, or if there is
  539.      no token, the address given by the `address' command is used
  540.      (*note Placing the Call::.).  Escape sequences in the address are
  541.      expanded as they are for chat script expect strings (*note Chat
  542.      Scripts::.).  The different between `TLI' and `TLIS' is that the
  543.      latter implies the command `stream true'.  These contortions are
  544.      all for HDB compatibility.  Any subsequent dialers are treated as
  545.      they are for a modem.
  546. `lockname STRING [ modem and direct only ]'
  547.      Give the name to use when locking this port.  On Unix, this is the
  548.      name of the file that will be created in the lock directory.  It
  549.      is used as is, so on Unix it should generally start with `LCK..'. 
  550.      For example, if a single port were named both `/dev/ttycu0' and
  551.      `/dev/tty0' (perhaps with different characteristics keyed on the
  552.      minor device number), then the command `lockname LCK..ttycu0' could
  553.      be used to force the latter to use the same lock file name as the
  554.      former.
  555. `service STRING [ tcp only ]'
  556.      Name the TCP port number to use.  This may be a number.  If not,
  557.      it will be looked up in `/etc/services'.  If this is not
  558.      specified, the string `uucp' is looked up in `/etc/services'.  If
  559.      it is not found, port number 540 (the standard UUCP-over-TCP port
  560.      number) will be used.
  561. `push STRINGS [ tli only ]'
  562.      Give a list of modules to push on to the TLI stream.
  563. `stream BOOLEAN [ tli only ]'
  564.      If this is true, and the `push' command was not used, the `tirdwr'
  565.      module is pushed on to the TLI stream.
  566. `server-address STRING [ tli only ]'
  567.      Give the address to use when running as a TLI server.  Escape
  568.      sequences in the address are expanded as they are for chat script
  569.      expect strings (*note Chat Scripts::.).
  570. File: uucp.info,  Node: dial File,  Next: Security,  Prev: port File,  Up: Configuration Files
  571. The Dialer Configuration File
  572. =============================
  573.    The dialer configuration files define dialers.  Any commands in the
  574. file before the first `dialer' command specify defaults for all the
  575. dialers in the file.  All commands after a `dialer' command up to the
  576. next `dialer' command are associated with the named dialer.
  577. `dialer STRING'
  578.      Introduces and names a dialer.
  579. `chat STRINGS'
  580. `chat-timeout NUMBER'
  581. `chat-fail STRING'
  582. `chat-seven-bit BOOLEAN'
  583. `chat-program STRINGS'
  584.      Specify a chat script to be used to dial the phone.  See *Note
  585.      Chat Scripts:: for full details on chat scripts.
  586.      Taylor UUCP will sleep for one second between attempts to dial out
  587.      on a modem.  If your modem requires a longer wait period, you must
  588.      start your chat script with delays (`\d' in a send string).
  589.      The chat script will be read from and sent to the port specified
  590.      by the `dial-device' command for the port, if there is one.
  591.      The following escape addition escape sequences may appear in send
  592.      strings:
  593.     `\D'
  594.           send phone number without dialcode translation
  595.     `\T'
  596.           send phone number with dialcode translation
  597.     `\M'
  598.           do not require carrier
  599.     `\m'
  600.           require carrier (fail if not present)
  601.      See the description of the dialcodes file (*note Configuration
  602.      File Names::.) for a description of dialcode translation.  If the
  603.      port does not support carrier (as set by the `carrier' command in
  604.      the port file) `\M' and `\m' are ignored.  If both the port and
  605.      the dialer support carrier (as set by the `carrier' command in the
  606.      port file and the `carrier' command in the dialer file), then
  607.      every chat script implicitly begins with `\M' and ends with `\m'. 
  608.      There is no default chat script for dialers.
  609.      The following additional escape sequences may be used in
  610.      `chat-program':
  611.     `\D'
  612.           phone number without dialcode translation
  613.     `\T'
  614.           phone number with dialcode translation
  615.      If the program changes the port in any way (e.g., sets parity) the
  616.      changes will be preserved during protocol negotiation, but once the
  617.      protocol is selected it will change the port settings.
  618. `dialtone STRING'
  619.      A string to output when dialing the phone number which causes the
  620.      modem to wait for a secondary dial tone.  This is used to
  621.      translate the `=' character in a phone number.  The default is a
  622.      comma.
  623. `pause STRING'
  624.      A string to output when dialing the phone number which causes the
  625.      modem to wait for 1 second.  This is used to translate the `-'
  626.      character in a phone number.  The default is a comma.
  627. `carrier BOOLEAN'
  628.      If the argument is true, the dialer supports the modem carrier
  629.      signal. After the phone number is dialed, `uucico' will require
  630.      that carrier be on.  One some systems, it will be able to wait for
  631.      it.  If the argument is false, carrier will not be required.  The
  632.      default is true.
  633. `carrier-wait NUMBER'
  634.      If the port is supposed to wait for carrier, this may be used to
  635.      indicate how many seconds to wait.  The default is 60 seconds. 
  636.      Only some systems support waiting for carrier.
  637. `dtr-toggle BOOLEAN BOOLEAN'
  638.      If the first argument is true, then DTR is toggled before using
  639.      the modem.  This is only supported on some systems and some ports.
  640.       The second BOOLEAN need not be present; if it is, and it is true,
  641.      the program will sleep for 1 second after toggling DTR. The
  642.      default is not to toggle DTR.
  643. `complete-chat STRINGS'
  644. `complete-chat-timeout NUMBER'
  645. `complete-chat-fail STRING'
  646. `complete-chat-seven-bit BOOLEAN'
  647. `complete-chat-program STRINGS'
  648.      These commands define a chat script (*note Chat Scripts::.) which
  649.      is run when a call is finished normally.  This allows the modem to
  650.      be reset. There is no default.  No additional escape sequences may
  651.      be used.
  652. `complete STRING'
  653.      This is a simple use of `complete-chat'.  It is equivalent to
  654.      `complete-chat "" STRING'; this has the effect of sending STRING
  655.      to the modem when a call finishes normally.
  656. `abort-chat STRINGS'
  657. `abort-chat-timeout NUMBER'
  658. `abort-chat-fail STRING'
  659. `abort-chat-seven-bit BOOLEAN'
  660. `abort-chat-program STRINGS'
  661.      These commands define a chat script (*note Chat Scripts::.) to be
  662.      run when a call is aborted.  They may be used to interrupt and
  663.      reset the modem.  There is no default.  No additional escape
  664.      sequences may be used.
  665. `abort STRING'
  666.      This is a simple use of `abort-chat'.  It is equivalent to
  667.      `abort-chat "" STRING'; this has the effect of sending STRING to
  668.      the modem when a call is aborted.
  669. `protocol-parameter CHARACTER STRINGS'
  670.      Set protocol parameters, just like the `protocol-parameter' command
  671.      in the system configuration file or the port configuration file;
  672.      see *Note Protocol Selection::.  These parameters take precedence,
  673.      then those for the port, then those for the system.
  674. `seven-bit BOOLEAN'
  675.      This is only used during protocol negotiation; if it is true, it
  676.      forces selection of a protocol which works across a seven-bit
  677.      link.  It does not prevent eight bit characters from being
  678.      transmitted.  The default is false.  It would be more common to
  679.      specify this for a port than for a dialer.
  680. `reliable BOOLEAN'
  681.      This is only used during protocol negotiation; if it is false, it
  682.      forces selection of a protocol which works across an unreliable
  683.      communication link.  The default is true.
  684. `half-duplex BOOLEAN [ any type ]'
  685.      If the argument is true, it means that the dialer only supports
  686.      half-duplex connections.  This only affects bidirectional
  687.      protocols, and causes them to not do bidirectional transfers.
  688. File: uucp.info,  Node: Security,  Prev: dial File,  Up: Configuration Files
  689. Security
  690. ========
  691.    This discussion of UUCP security applies only to Unix.  It is a bit
  692. cursory; suggestions for improvement are solicited.
  693.    UUCP is traditionally not very secure.  Taylor UUCP addresses some
  694. security issues, but is still far from being a secure system.
  695.    If security is very important to you, then you should not permit any
  696. external access to your computer, including UUCP.  Any opening to the
  697. outside world is a potential security risk.
  698.    By default Taylor UUCP provides few mechanisms to secure local users
  699. of the system from each other.  You can allow increased security by
  700. putting the owner of the UUCP programs (normally `uucp') into a separate
  701. group; the use of this is explained in the following paragraphs, which
  702. refer to this separate group as `uucp-group'.
  703.    When the `uucp' program is invoked to copy a file to a remote
  704. system, it will by default copy the file into the UUCP spool directory.
  705. When the `uux' program is used, the `-C' switch must be used to copy
  706. the file into the UUCP spool directory.  In any case, once the file has
  707. been copied into the spool directory, other local users will not be
  708. able to access it.
  709.    When a file is requested from a remote system, UUCP will only permit
  710. it to be placed in a directory which is writable by the requesting user.
  711. The directory must also be writable by UUCP.  A local user can create a
  712. directory with a group of `uucp-group' and set the mode to permit group
  713. write access.  This will allow the file be requested without permitting
  714. it to be viewed by any other user.
  715.    There is no provision for security for `uucp' requests (as opposed
  716. to `uux' requests) made by a user on a remote system.  A file sent over
  717. by a remote request may only be placed in a directory which is world
  718. writable, and the file will be world readable and writable.  This will
  719. permit any local user to destroy or replace the contents of the file. 
  720. A file requested by a remote system must be world readable, and the
  721. directory it is in must be world readable.  Any local user will be able
  722. to examine, although not necessarily modify, the file before it is sent.
  723.    There are some security holes and race conditions that apply to the
  724. above discussion which I will not elaborate on.  They are not hidden
  725. from anybody who reads the source code, but they are somewhat technical
  726. and difficult (though scarcely impossible) to exploit.  Suffice it to
  727. say that even under the best of conditions UUCP is not completely
  728. secure.
  729.    For many sites, security from remote sites is a more important
  730. consideration.  Fortunately, Taylor UUCP does provide some support in
  731. this area.
  732.    The greatest security is provided by always dialing out to the other
  733. site.  This prevents anybody from pretending to be the other site.  Of
  734. course, only one side of the connection can do this.
  735.    If remote dialins must be permitted, then it is best if the dialin
  736. line is used only for UUCP.  If this is the case, then you should
  737. create a call-in password file (*note Configuration File Names::.) and
  738. let `uucico' do its own login prompting.  For example, to let remote
  739. sites log in on a port named `entry' in the port file (*note port
  740. File::.) you might invoke `uucico -p entry'.  This would cause `uucico'
  741. to enter an endless loop of login prompts and daemon executions.  The
  742. advantage of this approach is that even if remote users break into the
  743. system by guessing or learning the password, they will only be able to
  744. do whatever `uucico' permits them to do.  They will not be able to
  745. start a shell on your system.
  746.    If remote users can dial in and log on to your system, then you have
  747. a security hazard more serious than that posed by UUCP.  But then, you
  748. probably knew that already.
  749.    Once your system has connected with the remote UUCP, there is a fair
  750. amount of control you can exercise.  You can use the `remote-send' and
  751. `remote-receive' commands to control the directories the remote UUCP
  752. can access.  You can use the `request' command to prevent the remote
  753. UUCP from making any requests of your system at all; however, if you do
  754. this it will not even be able to send you mail or news.  If you do
  755. permit remote requests, you should be careful to restrict what commands
  756. may be executed at the remote system's request.  The default is `rmail'
  757. and `rnews', which will suffice for most systems.
  758.    If different remote systems call in and they must be granted
  759. different privileges (perhaps some systems are within the same
  760. organization and some are not) then the `called-login' command should
  761. be used for each system to require that they different login names. 
  762. Otherwise it would be simple for a remote system to use the `myname'
  763. command and pretend to be a different system.  The `sequence' command
  764. can be used to detect when one system pretended to be another, but
  765. since the sequence numbers must be reset manually after a failed
  766. handshake this can sometimes be more trouble than it's worth.
  767. File: uucp.info,  Node: Protocols,  Next: Hacking,  Prev: Configuration Files,  Up: Top
  768. UUCP protocol internals
  769. ***********************
  770.    This chapter describes how the various UUCP protocols work, and
  771. discusses some other internal UUCP issues.
  772.    This chapter is quite technical.  You do not need to understand it,
  773. or even read it, in order to use Taylor UUCP.  It is intended for people
  774. who are interested in how UUCP code works.
  775.    This chapter is also, unfortunately, somewhat out of date, although I
  776. believe that is incomplete rather than inaccurate.  I post this
  777. information to the newsgroups `comp.mail.uucp' and `news.answers' each
  778. month; if you want to write code based on this information, please get
  779. the most recent copy.
  780.    Most of the discussion covers the protocols used by all UUCP
  781. packages, not just Taylor UUCP.  Any information specific to Taylor
  782. UUCP is indicated as such.  There are some pointers to the actual
  783. functions in the Taylor UUCP source code, for those who are extremely
  784. interested in actual UUCP implementation.
  785. * Menu:
  786. * Grades::                      UUCP grades
  787. * Lock Files::                  UUCP lock file format
  788. * UUCP Protocol::               The common UUCP protocol
  789. * g Protocol::                  The UUCP `g' protocol
  790. * f Protocol::                  The UUCP `f' protocol
  791. * t Protocol::                  The UUCP `t' protocol
  792. * e Protocol::                  The UUCP `e' protocol
  793. * x Protocol::                  The UUCP `x' protocol
  794. * d Protocol::                  The UUCP `d' protocol
  795. * Capital G Protocol::          The UUCP `G' protocol
  796. * Documentation References::    Documentation references
  797. File: uucp.info,  Node: Grades,  Next: Lock Files,  Prev: Protocols,  Up: Protocols
  798. UUCP Grades
  799. ===========
  800.    Modern UUCP packages support grades for each command.  The grades
  801. generally range from `A' (the highest) to `Z' followed by `a' to `z'. 
  802. Taylor UUCP also supports `0' to `9' before `A'.  Some UUCP packages
  803. may permit any ASCII character as a grade.
  804.    On Unix, these grades are encoded in the name of the command file.  A
  805. command file name generally has the form
  806.      C.nnnngssss
  807. where NNNN is the remote system name for which the command is queued, G
  808. is a single character grade, and SSSS is a four character sequence
  809. number.  For example, a command file created for the system `airs' at
  810. grade `Z' might be named
  811.      C.airsZ2551
  812.    The remote system name will be truncated to seven characters, to
  813. ensure that the command file name will fit in the 14 character file
  814. name limit of the traditional Unix file system.  UUCP packages which
  815. have no other means of distinguishing which command files are intended
  816. for which systems thus require all *systems they connect to* to have
  817. names that are unique in the first seven characters.  Some UUCP
  818. packages use a variant of this format which truncates the system name
  819. to six characters.  HDB uses a different spool directory format, which
  820. allows up to fourteen characters to be used for each system name.  The
  821. Taylor UUCP spool directory format is configurable.  The new Taylor
  822. spool directory format permits system names to be as long as file
  823. names; the maximum length of a file name depends on the particular Unix
  824. file system being used.
  825.    The sequence number in the command file name may be a decimal
  826. integer, or it may be a hexadecimal integer, or it may contain any
  827. alphanumeric character.  Different UUCP packages are different.
  828.    Taylor UUCP creates command files in the function
  829. `zsysdep_spool_commands'.  The file name is constructed by the function
  830. `zsfile_name', which knows about all the different types of spool
  831. directories supported by Taylor UUCP.  The Taylor UUCP sequence number
  832. can contain any alphanumeric character; the next sequence number is
  833. determined by the function `fscmd_seq'.
  834.    I do not know how command grades are handled in non-Unix UUCP
  835. packages.
  836.    Modern UUCP packages allow you to restrict file transfer by grade
  837. depending on the time of day.  Typically this is done with a line in
  838. the `Systems' (or `L.sys') file like this:
  839.      airs Any/Z,Any2305-0855 ...
  840.    This allows only grades `Z' and above to be transferred at any time.
  841.  Lower grades may only be transferred at night.  I believe that this
  842. grade restriction applies to local commands as well as to remote
  843. commands, but I am not sure.  It may only apply if the UUCP package
  844. places the call, not if it is called by the remote system.  Taylor UUCP
  845. can use the `timegrade' and `call-timegrade' commands (*note When to
  846. Call::.) to achieve the same effect (and supports the above format when
  847. reading `Systems' or `L.sys').
  848.    This sort of grade restriction is most useful if you know what grades
  849. are being used at the remote site.  The default grades used depend on
  850. the UUCP package.  Generally `uucp' and `uux' have different defaults. 
  851. A particular grade can be specified with the `-g' option to `uucp' or
  852. `uux'.  For example, to request execution of rnews on airs with grade
  853. `d', you might use something like
  854.      uux -gd - airs!rnews <article
  855.    `uunet' queues up mail at grade `Z' and news at grade `d'.  The
  856. example above would allow mail to be received at any time, but would
  857. only permit news to be transferred at night.
  858. File: uucp.info,  Node: Lock Files,  Next: UUCP Protocol,  Prev: Grades,  Up: Protocols
  859. UUCP Lock File Format
  860. =====================
  861.    This discussion applies only to Unix.  I have no idea how UUCP locks
  862. ports on other systems.
  863.    UUCP creates files to lock serial ports and systems.  On most (if not
  864. all) systems, these same lock files are also used by cu to coordinate
  865. access to serial ports.  On some systems getty also uses these lock
  866. files.
  867.    The lock file normally contains the process ID of the locking
  868. process. This makes it easy to determine whether a lock is still valid.
  869.  The algorithm is to create a temporary file and then link it to the
  870. name that must be locked.  If the link fails because a file with that
  871. name already exists, the existing file is read to get the process ID. 
  872. If the process still exists, the lock attempt fails.  Otherwise the
  873. lock file is deleted and the locking algorithm is retried.
  874.    Older UUCP packages put the lock files in the main UUCP spool
  875. directory, /usr/spool/uucp.  HDB UUCP generally puts the lock files in
  876. a directory of their own, usually /usr/spool/locks or /etc/locks.
  877.    The original UUCP lock file format encoded the process ID as a four
  878. byte binary number.  The order of the bytes was host-dependent.  HDB
  879. UUCP stores the process ID as a ten byte ASCII decimal number, with a
  880. trailing newline.  For example, if process 1570 holds a lock file, it
  881. would contain the eleven characters space, space, space, space, space,
  882. space, one, five, seven, zero, newline.  Some versions of UUCP add a
  883. second line indicating which program created the lock (uucp, cu, or
  884. getty).  I have also seen a third type of UUCP lock file which did not
  885. contain the process ID at all.
  886.    The name of the lock file is generally "LCK.." followed by the base
  887. name of the device.  For example, to lock /dev/ttyd0 the file LCK..ttyd0
  888. would be created.  There are various exceptions.  On SCO Unix, the lock
  889. file name is always forced to lower case even if the device name has
  890. upper case letters.  System V Release 4 UUCP forms the lock file name
  891. using the major and minor device numbers rather than the device name
  892. (this is pretty sensible if you think about it).
  893.    Taylor UUCP can be configured to use various different types of
  894. locking. The actual locking code is in the function `fsdo_lock'.
  895. File: uucp.info,  Node: UUCP Protocol,  Next: g Protocol,  Prev: Lock Files,  Up: Protocols
  896. The Common UUCP Protocol
  897. ========================
  898.    The UUCP protocol is a conversation between two UUCP packages.  A
  899. UUCP conversation consists of three parts: an initial handshake, a
  900. series of file transfer requests, and a final handshake.
  901.    Before the initial handshake, the caller will usually have logged in
  902. the called machine and somehow started the UUCP package there.  On Unix
  903. this is normally done by setting the shell of the login name used to
  904. `uucico'.
  905. * Menu:
  906. * Initial Handshake::           Initial handshake
  907. * File Requests::               File requests
  908. * Final Handshake::             Final handshake
  909.